﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Twodi.Behavior;
using System.ComponentModel;
using Twodi.Structs;
using Twodi.Behavior.Implemented;
using Twodi.Behavior.Interfaces;

namespace Twodi.Implemented
{
    public class Animated : Textured, IAnimationBehavior
    {
        public Animated(Texture2D texture, Game game)
            : base(texture, game)
        {
            AnimateBehavior = new AnimateBehavior(this);
        }

        public override void Update(GameTime gameTime)
        {
            AnimateBehavior.Update(gameTime);
            base.Update(gameTime);
        }

        public AnimateBehavior AnimateBehavior
        {
            get;
            protected set;
        }
    }
}
